public class Pig {

    public String name;
    public int age;
    public double weight;

    public Pig(String name, int age, double weight) {
        /**
         * 类构造方法*/
        this.name = name;
        this.age = age;
        this.weight = weight;
    }

    public void showInformation() {
        /**
         * 打印当前类的信息*/
        System.out.println("==========");
        System.out.println("Show Information");
        System.out.println("name:" + this.name);
        System.out.println("age:" + this.age);
        System.out.println("weight:" + this.weight);
        System.out.println("==========");
    }
}
